
import React from 'react'
import { NavLink } from 'react-router-dom';
import { Menu } from 'antd';
import { inject,observer} from 'mobx-react'
import "./draw.css"

@inject('xingYunChouJiang')
@observer
class LockDraw extends React.Component{

  

    render(){
      let insertTab = ()=>{
        this.props.xingYunChouJiang.insertStart('insert',false)
      }
        return(
            <div className="chouJiang">
              <div>
                <Menu
                  className='nav'
                  mode='horizontal'
                  style={{background:'transparent'}}     
                >
                   <Menu.Item key='1'>
                     <NavLink to='/Home/cuXiao/Draw/xingYunChouJiang'>幸运抽奖</NavLink>
                     </Menu.Item>   
                     <Menu.Item key='2'>
                     <NavLink to='/Home/cuXiao/Draw/updateDraw' onClick={insertTab}>添加抽奖</NavLink>
                     </Menu.Item>                      
                </Menu>
              </div>
                <div>
                  {this.props.children}
                </div>
            </div>
        )
    }
}

export default LockDraw